#ifndef USER_H_INCLUDED
#define USER_H_INCLUDED

struct user_s
{
    struct user_s* previous;
    struct user_s* next;
    char* number;
    char* name;
    int total;
    int rest;
    char* password;
};

typedef struct user_s user;

user* create_users_list(char*);
void free_user(user*);
void show_user(user*);
user* create_user();
user* search_user(user*, char*);
int user_borrow_book(user*, char*);
int user_return_book(user*, char*);

#endif // USER_H_INCLUDED
